<?php
echo ! empty($h2_title) ? '<h2>'. $h2_title .'</h2>' : '' ;
echo ! empty($message) ? '<p class="message">'. $message .'</p>' : '' ;

$flashmessage = $this->session->flashdata('message');
echo ! empty($flashmessage) ? '<p class="message">'. $flashmessage .'</p>' : '';
?>

<form name="absen_form" method="post" action="<?php echo $action; ?>">
	<p>
    	<label for="nama_bobot">Nama :</label>
    	<input type="text" class="form_field" name="nama_bobot" value="<?php echo set_value('nama_bobot', isset($nama_bobot) ? $nama_bobot : '' );?>" />
    </p>
    <?php echo form_error('nama_bobot', '<p class="field_error">', '</p>');?>
    <p>
    	<label for="nama_bobot">Nilai P :</label>
    	<input type="text" class="form_field" name="n_p" value="<?php echo set_value('n_p', isset($n_p) ? $n_p : '' );?>" />
    </p>
    <?php echo form_error('n_p', '<p class="field_error">', '</p>');?>
    <p>
    	<label for="nama_bobot">Nilai E :</label>
    	<input type="text" class="form_field" name="n_e" value="<?php echo set_value('n_e', isset($n_e) ? $n_e : '' );?>" />
    </p>
    <?php echo form_error('n_e', '<p class="field_error">', '</p>');?>
    <p>
    	<label for="nama_bobot">Nilai A :</label>
    	<input type="text" class="form_field" name="n_a" value="<?php echo set_value('n_a', isset($n_a) ? $n_a : '' );?>" />
    </p>
    <?php echo form_error('n_a', '<p class="field_error">', '</p>');?>
    <p>
    	<label for="nama_bobot">Nilai R :</label>
    	<input type="text" class="form_field" name="n_r" value="<?php echo set_value('n_r', isset($n_r) ? $n_r : '' );?>" />
    </p>
    <?php echo form_error('n_r', '<p class="field_error">', '</p>');?>
    <p>
    	<label for="nama_bobot">Nilai L :</label>
    	<input type="text" class="form_field" name="n_l" value="<?php echo set_value('n_l', isset($n_l) ? $n_l : '' );?>" />
    </p>
    <?php echo form_error('n_l', '<p class="field_error">', '</p>');?>
    <p>
    	<label for="nama_bobot">Nilai S :</label>
    	<input type="text" class="form_field" name="n_s" value="<?php echo set_value('n_s', isset($n_s) ? $n_s : '' );?>" />
    </p>
    <?php echo form_error('n_s', '<p class="field_error">', '</p>');?>
    <p>
    	<input type="submit" name="submit" id="submit" value=" Simpan " />
        <input type="reset" name="reset" id="reset" value=" Reset " /> 
    </p>
</form>

<?php
if (! empty($link)) {
	echo '<p class="bottom_link">';
	foreach($link as $links){
		echo $links .  '';
	}
	echo '</p>';
}
?>